const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // token: function(state) {
  //   return state.user.token
  // }
  token: state => state.user.token,
  name: state => state.user.userInfo.username,
  userphoto: state => state.user.userInfo.staffPhoto,
  routes: state => state.permission.routes, // 导出当前的路由
  roles: state => state.user.userInfo.roles }
export default getters
